<template>
   <!-- 加载图标样式15 -->
   <div class="loading">
      <div></div>
      <div></div>
      <div></div>
   </div>
</template>

<script setup>

</script>

<style scoped lang='scss'>
.loading>div,
.loading {
   box-sizing: border-box;
   position: relative
}

.loading {
   color: #1678ff;
   display: block;
   font-size: 0;
   height: 48px;
   width: 48px
}

.loading.la-dark {
   color: #333
}

.loading>div {
   animation: fire-diamonds 1.5s linear infinite;
   background-image: linear-gradient(90deg, #1678ff, rgba(22, 120, 255, .5));
   border-radius: 2px;
   bottom: 0;
   display: inline-block;
   float: none;
   height: 22px;
   left: 50%;
   position: absolute;
   transform: translateY(0) translateX(-50%) rotate(45deg) scale(0);
   width: 22px
}

.loading>div:first-child {
   animation-delay: -.85s
}

.loading>div:nth-child(2) {
   animation-delay: -1.85s
}

.loading>div:nth-child(3) {
   animation-delay: -2.85s
}

.loading.la-sm {
   height: 16px;
   width: 16px
}

.loading.la-sm>div {
   height: 6px;
   width: 6px
}

.loading.la-2x {
   height: 64px;
   width: 64px
}

.loading.la-2x>div {
   height: 24px;
   width: 24px
}

.loading.la-3x {
   height: 96px;
   width: 96px
}

.loading.la-3x>div {
   height: 36px;
   width: 36px
}

@keyframes fire-diamonds {
   0% {
      transform: translateY(75%) translateX(-50%) rotate(45deg) scale(0)
   }

   50% {
      transform: translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)
   }

   to {
      transform: translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)
   }
}
</style>
